import java.io.Closeable;
import java.io.Flushable;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
import java.net.SocketException;
import java.net.UnknownHostException;


public class UDPInputStream extends InputStream implements Closeable

{
	
	public static final int DEFAULT_UDPSTREAM_PORT = 61945;
	
	
	
	private SocketAddress  bindaddr = null;
	
	
	public UDPInputStream(SocketAddress  bindaddr) 
	{
		this.bindaddr = bindaddr;
	}
	
	public UDPInputStream(InetAddress inet, int port) 
	{
		this.bindaddr = new InetSocketAddress(inet,port);
	}
	public UDPInputStream(InetAddress inet) 
	{
		this(inet, UDPInputStream.DEFAULT_UDPSTREAM_PORT );
	}
	public UDPInputStream(String hostname) throws UnknownHostException 
	{
		this(InetAddress.getByName(hostname), UDPInputStream.DEFAULT_UDPSTREAM_PORT);
	}
	public UDPInputStream(String hostname, int port) throws UnknownHostException 
	{
		this(InetAddress.getByName(hostname), port);
	}
	public UDPInputStream() throws UnknownHostException 
	{
		this(InetAddress.getLocalHost() , UDPInputStream.DEFAULT_UDPSTREAM_PORT);
	}
	
	
	
	
	
	
	
	

	@Override
	public int read() throws IOException {
		// TODO Auto-generated method stub
		return 0;
	}
	


}
